package com.symria.server.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * AdContent entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "AD_CONTENT")
public class AdContent implements java.io.Serializable {

	// Fields

	private Integer adId;
	private String displayType;
	private String adTitle;
	private String adText;
	private String adUrl;
	private String viewType;
	private String imgPath;
	private String clickType;
	private String packName;
    private String packSize;
    private String activate;
    private String activateDesc;
    private String imgOne;
    private String imgTwo;
    private String imgThree;
    
	// Constructors
	/** default constructor */
	public AdContent() {
	}
	@Column(name = "IMG_ONE", length = 128)
	public String getImgOne() {
		return imgOne;
	}
	public void setImgOne(String imgOne) {
		this.imgOne = imgOne;
	}
	@Column(name = "IMG_TWO", length = 128)
	public String getImgTwo() {
		return imgTwo;
	}
	public void setImgTwo(String imgTwo) {
		this.imgTwo = imgTwo;
	}
	@Column(name = "IMG_THREE", length = 128)
	public String getImgThree() {
		return imgThree;
	}
	public void setImgThree(String imgThree) {
		this.imgThree = imgThree;
	}
	@Column(name = "PACK_SIZE", length = 64)
	public String getPackSize() {
		return packSize;
	}
	public void setPackSize(String packSize) {
		this.packSize = packSize;
	}
	@Column(name = "ACTIVATE", length = 64)
	public String getActivate() {
		return activate;
	}
	public void setActivate(String activate) {
		this.activate = activate;
	}

	@Column(name = "ACTIVATE_DESC", length = 256)
	public String getActivateDesc() {
		return activateDesc;
	}

	public void setActivateDesc(String activateDesc) {
		this.activateDesc = activateDesc;
	}

	@Column(name = "PACK_NAME", length = 64)
	public String getPackName() {
		return packName;
	}



	public void setPackName(String packName) {
		this.packName = packName;
	}



	@Column(name = "CLICK_TYPE", length = 1)
	public String getClickType() {
		return clickType;
	}
	public void setClickType(String clickType) {
		this.clickType = clickType;
	}
	@Column(name = "AD_TITLE", length = 128)
	public String getAdTitle() {
		return adTitle;
	}

	public void setAdTitle(String adTitle) {
		this.adTitle = adTitle;
	}

	/** minimal constructor */
	public AdContent(Integer adId) {
		this.adId = adId;
	}

	/** full constructor */
	public AdContent(Integer adId, String displayType, String adText,
			String adUrl, String viewType, String imgPath) {
		this.adId = adId;
		this.displayType = displayType;
		this.adText = adText;
		this.adUrl = adUrl;
		this.viewType = viewType;
		this.imgPath = imgPath;
	}

	// Property accessors
	@Id   
	@GeneratedValue(generator = "c-assigned")
	@GenericGenerator(name = "c-assigned", strategy = "assigned")
	@Column(name = "AD_ID", unique = true, nullable = false)
	public Integer getAdId() {
		return this.adId;
	}

	public void setAdId(Integer adId) {
		this.adId = adId;
	}

	@Column(name = "DISPLAY_TYPE", length = 8)
	public String getDisplayType() {
		return this.displayType;
	}

	public void setDisplayType(String displayType) {
		this.displayType = displayType;
	}

	@Column(name = "AD_TEXT", length = 256)
	public String getAdText() {
		return this.adText;
	}

	public void setAdText(String adText) {
		this.adText = adText;
	}

	@Column(name = "AD_URL", length = 1024)
	public String getAdUrl() {
		return this.adUrl;
	}

	public void setAdUrl(String adUrl) {
		this.adUrl = adUrl;
	}

	@Column(name = "VIEW_TYPE", length = 1)
	public String getViewType() {
		return this.viewType;
	}

	public void setViewType(String viewType) {
		this.viewType = viewType;
	}

	@Column(name = "IMG_PATH", length = 128)
	public String getImgPath() {
		return this.imgPath;
	}

	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}

}